Skip to content

feat: generate exported constants for properties with const values#2403

Open
Shyam-Raghuwanshi wants to merge 8 commits intoasyncapi:masterfrom
Shyam-Raghuwanshi:feature/generate-exported-constants-for-const-properties
Open

feat: generate exported constants for properties with const values#2403
Shyam-Raghuwanshi wants to merge 8 commits intoasyncapi:masterfrom
Shyam-Raghuwanshi:feature/generate-exported-constants-for-const-properties

Conversation

@Shyam-Raghuwanshi
Copy link

@Shyam-Raghuwanshi Shyam-Raghuwanshi commented Dec 31, 2025

fixes #2399

Checklist

  • The code follows the project's coding standards and is properly linted (npm run lint).
  • Tests have been added or updated to cover the changes.
  • Documentation has been updated to reflect the changes.
  • All tests pass successfully locally.(npm run test).

Additional Notes

@netlify
Copy link

netlify bot commented Dec 31, 2025

Deploy Preview for modelina failed.

Name Link
🔨 Latest commit 3e06d20
🔍 Latest deploy log https://app.netlify.com/projects/modelina/deploys/698a113a241d610008300d0d

@sonarqubecloud
Copy link

Copy link
Member

@jonaslagoni jonaslagoni left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needs test and docs. Also got a few sonar cloud issues

Copy link
Member

@jonaslagoni jonaslagoni left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yea, I dont think this is the right approach.

If we really want to export const values we need to use the same approach as for enums and create separate renderer for this.

@Shyam-Raghuwanshi Shyam-Raghuwanshi force-pushed the feature/generate-exported-constants-for-const-properties branch from 11995f4 to c9dff41 Compare February 9, 2026 16:50
@sonarqubecloud
Copy link

sonarqubecloud bot commented Feb 9, 2026

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEATURE] Generate Exported Constants for Properties with const Values

2 participants